import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { EArenaMode } from "./EArenaMode";
type int = number;
//class SArenaMode
    
    export  class SArenaMode extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SArenaMode();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.mode.__write(arg1);
            arg1.writeBool(this.inCd);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.mode = EArenaMode.__read(arg1);
            this.inCd = arg1.readBool();
            return;
        }

        public /* const */_type: int=142;

        public /* var */mode: EArenaMode;

        public /* var */inCd: Boolean;

        public static /* var */_regist: SArenaMode;
    }

            SArenaMode._regist = new SArenaMode(true);
        